import request from "@/network/request"
const testAPI = require("@/apis")

export const createReceipt = config => request._post(testAPI.RECEIPT_CREATE, config)
export const getAllReceipt = config => request._get(testAPI.RECEIPT_ALL, config)
export const ReceiptApproval = config => request._get(testAPI.RECEIPT_APPROVAL, config)

export const createPay = config => request._post(testAPI.PAY_CREATE, config)
export const getAllPay = config => request._get(testAPI.PAY_ALL, config)
export const PayApproval = config => request._get(testAPI.PAY_APPROVAL, config)


export const createSalary = config => request._post(testAPI.SALARY_CREATE, config)
export const getAllSalary = config => request._get(testAPI.SALARY_ALL, config)
export const SalaryApproval = config => request._get(testAPI.SALARY_APPROVAL, config)
